// pages/center/withdraw-record/withdraw-record.js
var app = getApp()
Page({

  /**
   * 页面的初始数据
   */
  data: {
    data:'',
    array: { 3: '微信', 1: '银行卡', 2: '支付宝'},
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
    let that = this;
    app.post('/withdraw/withdrawList').then(res=>{
      console.log(res);
      that.setData({
        data: res
      })
    })
  },

  onShow: function () {
    
  },

})